package com.tony.spring.mode.chain;

/***
 * 胃痛头痛
 * @author qiu
 *
 */
public class HaDoctor implements DoctorChain{

	@Override
	public boolean isBingUser(BingUser bingUser) {
		if("W".equals(bingUser.getDescription())){
			return true;
		}
		return false;
	}

	@Override
	public void doTreat(BingUser bingUser) {
		System.out.println("胃痛医生已经收到通知，开始治疗");
	}

}
